<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<h3>Klasy</h3>

<form:form commandName="class">
<form:hidden path="classId"/>
<table>

	<tr>
	<td colspan="2">
	
	<div style="color: green">${zmieniono}</div>

	
	</td>
	</tr>
	<tr>
	<td colspan="2">
	
	<form:errors path="className" cssClass="error_box" />

	
	</td>
	</tr>
	<tr>
		<td><form:label path="className">Nazwa klasy:</form:label></td>
		<td><form:input path="className" /></td>
	</tr>
	<tr>
	<td colspan="2">
	
	<form:errors path="classDescription" cssClass="error_box" />

	
	</td>
	</tr>
	<tr>
		<td><form:label path="classDescription">Krótki opis klasy:</form:label></td>
		<td><form:textarea path="classDescription" /></td>
	</tr>
</table>
	<input type="submit" value="Zmień i wróć" />
</form:form>
